{
 "metadata": {
  "signature": "sha256:29351e528beb347eb26e5fc77a7cbd21808e542494b9750232d34f15e6f23f87"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "strategy",
     "collapsed": false,
     "has_detail": true,
     "id": "41CD635743E047C6A284DBF5B07D72D8",
     "input": "import pandas as pd\nstart = '2014-11-01'\nend   = '2018-01-01'\nbenchmark = 'HS300'\nuniverse = DynamicUniverse('HS300')   # \u80a1\u7968\u6c60\u4e3a\u6caa\u6df1300\nrefresh_rate = 60\nmax_history_window = 60\naccounts = {\n    'fantasy_account': AccountConfig(account_type='security', capital_base=10000000,\n                                     commission=Commission(buycost=0.001, sellcost=0.002, unit='perValue'),slippage = Slippage(value=0.0, unit='perValue'))\n}\ndef initialize(context):\n    pass\ndef handle_data(context):\n    \n    account = context.get_account('fantasy_account')\n    universe = context.get_universe(exclude_halt=True)  \n    history = context.history(universe,'closePrice', 60)\n    momentum = {'symbol':[], 'c_ret':[]}\n    for stk in history.keys():\n        momentum['symbol'].append(stk)\n        momentum['c_ret'].append(history[stk]['closePrice'][-1]/history[stk]['closePrice'][0])\n    # \u6309\u7167\u8fc7\u53bb60\u65e5\u6536\u76ca\u7387\u6392\u5e8f\uff0c\u5e76\u4e14\u9009\u62e9\u524d60\u53ea\u7684\u80a1\u7968\u4f5c\u4e3a\u4e70\u5165\u5019\u9009\n    momentum = pd.DataFrame(momentum).sort(columns='c_ret',ascending=False).reset_index()\n    # print momentum\n    momentum = momentum[:60]   # \u9009\u62e9\n    buylist = momentum['symbol'].tolist()\n    # print account.get_positions()\n    for stk in account.get_positions():\n        if stk not in buylist:\n            order_to(stk, 0)\n \n    # \u7b49\u6743\u91cd\u4e70\u5165\u6240\u9009\u80a1\u7968\n    portfolio_value = account.portfolio_value\n    for stk in buylist:\n            order_pct_to(stk, 1.0/len(buylist))",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "The stock 601299.XSHG is expiring and the system closes relevant position."
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "\n"
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "The stock 000024.XSHE is expiring and the system closes relevant position.\n"
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "The stock 600005.XSHG is expiring and the system closes relevant position.\n"
      },
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 1,
       "text": "'{\"information\": 0.25747, \"benchmark_cumulative_return\": {\"1419897600000\": 0.378427081, \"1477008000000\": 0.3266755172, \"1468368000000\": 0.308786324, \"1506038400000\": 0.5299942193, \"1492560000000\": 0.3737730283, \"1446422400000\": 0.3857674229, \"1459468800000\": 0.2844781189, \"1477440000000\": 0.3374635714, \"1486944000000\": 0.3699453421, \"1496188800000\": 0.3925139435, \"1500249600000\": 0.460556426, \"1415232000000\": -0.0009009979, \"1420761600000\": 0.4139766299, \"1483401600000\": 0.332451073, \"1429488000000\": 0.8027611997, \"1458604800000\": 0.2860309449, \"1477958400000\": 0.3391587231, \"1429833600000\": 0.874809136, \"1449187200000\": 0.4661515829, \"1469664000000\": 0.2841759258, \"1419552000000\": 0.3737586362, \"1472688000000\": 0.3162450714, \"1433721600000\": 1.1343882185, \"1478476800000\": 0.3381779909, \"1427760000000\": 0.6150984918, \"1420588800000\": 0.4526756846, \"1422921600000\": 0.3704137813, \"1450828800000\": 0.5414164006, \"1480550400000\": 0.4212786994, \"1509062400000\": 0.6034443634, \"1453334400000\": 0.2284448219, \"1437696000000\": 0.6649639402, \"1442448000000\": 0.2904996551, \"1490659200000\": 0.383314516, \"1422403200000\": 0.4054450571, \"1471219200000\": 0.3528618643, \"1456704000000\": 0.1471644481, \"1483660800000\": 0.3346198467, \"1458172800000\": 0.2455314891, \"1513296000000\": 0.5870542552, \"1481587200000\": 0.3574912392, \"1484265600000\": 0.3235547157, \"1508889600000\": 0.5854967249, \"1486512000000\": 0.3488209287, \"1493337600000\": 0.371331922, \"1463961600000\": 0.2307882137, \"1487030400000\": 0.3697575678, \"1453852800000\": 0.168248197, \"1504051200000\": 0.5286268155, \"1416873600000\": 0.0706565723, \"1509926400000\": 0.6030145954, \"1461283200000\": 0.2657429445, \"1489017600000\": 0.3662253372, \"1501027200000\": 0.4772332189, \"1429228800000\": 0.8323506078, \"1466121600000\": 0.2400110831, \"1448582400000\": 0.4180717848, \"1462233600000\": 0.2811472175, \"1480636800000\": 0.4068942284, \"1482969600000\": 0.3147253352, \"1474329600000\": 0.298634151, \"1450742400000\": 0.5455434492, \"1423526400000\": 0.35825031, \"1415318400000\": -0.0024637906, \"1493251200000\": 0.374109547, \"1500940800000\": 0.4828826351, \"1416528000000\": 0.0299521993, \"1508457600000\": 0.5655244725, \"1451865600000\": 0.3830181834, \"1452643200000\": 0.2581594128, \"1459123200000\": 0.2636806162, \"1471910400000\": 0.3322928004, \"1461110400000\": 0.2681848082, \"1498003200000\": 0.4304158544, \"1480291200000\": 0.4093364908, \"1499731200000\": 0.4634472338, \"1431648000000\": 0.8408542736, \"1434326400000\": 1.0815323343, \"1444262400000\": 0.3142138395, \"1437004800000\": 0.5936324168, \"1446163200000\": 0.4089370218, \"1494460800000\": 0.3381994793, \"1418947200000\": 0.3487738854, \"1510099200000\": 0.613825015, \"1474848000000\": 0.2838358589, \"1490227200000\": 0.3801924787, \"1512604800000\": 0.5831477118, \"1444608000000\": 0.3744973747, \"1430697600000\": 0.9087360913, \"1494806400000\": 0.3551620799, \"1417737600000\": 0.2458049778, \"1437609600000\": 0.6946753418, \"1466553600000\": 0.2494213281, \"1487548800000\": 0.3839458923, \"1509580800000\": 0.5935440313, \"1439769600000\": 0.6257318614, \"1427414400000\": 0.5834040975, \"1449792000000\": 0.4384307487, \"1498521600000\": 0.4650046844, \"1495497600000\": 0.3651289902, \"1450915200000\": 0.5266739225, \"1512086400000\": 0.59394358, \"1493942400000\": 0.3485267887, \"1452211200000\": 0.3401597876, \"1494288000000\": 0.3365595436, \"1435708800000\": 0.6955587981, \"1427068800000\": 0.5835476193, \"1441584000000\": 0.2958761407, \"1505865600000\": 0.5318699294, \"1470614400000\": 0.2893769958, \"1467763200000\": 0.2824484817, \"1417651200000\": 0.2376162626, \"1506556800000\": 0.5239376797, \"1469750400000\": 0.2773159831, \"1460073600000\": 0.2700585649, \"1447200000000\": 0.5283658849, \"1473120000000\": 0.332610143, \"1443139200000\": 0.2884871608, \"1479340800000\": 0.3700489967, \"1505433600000\": 0.5274292059, \"1451520000000\": 0.4874458305, \"1507680000000\": 0.5558904929, \"1429660800000\": 0.8896277603, \"1513555200000\": 0.5888226031, \"1433289600000\": 1.0506033895, \"1429142400000\": 0.7994243182, \"1465257600000\": 0.2666012845, \"1514246400000\": 0.616064234, \"1478044800000\": 0.3289128623, \"1492732800000\": 0.3821094114, \"1492041600000\": 0.4011578221, \"1447891200000\": 0.5049730299, \"1418083200000\": 0.238636862, \"1445990400000\": 0.4052855884, \"1486425600000\": 0.341803112, \"1452124800000\": 0.3133774264, \"1479254400000\": 0.3672810196, \"1447632000000\": 0.5006502334, \"1423612800000\": 0.3690862048, \"1415750400000\": 0.0342817731, \"1415664000000\": 0.0200452094, \"1427155200000\": 0.5839423042, \"1437955200000\": 0.5224196976, \"1510790400000\": 0.6365518891, \"1502236800000\": 0.4874613787, \"1416182400000\": 0.0234299315, \"1506297600000\": 0.5220451456, \"1424908800000\": 0.4217826203, \"1512691200000\": 0.5960336957, \"1494892800000\": 0.3669051122, \"1462406400000\": 0.2812987127, \"1460592000000\": 0.3059812704, \"1470960000000\": 0.3133176257, \"1461196800000\": 0.2600427376, \"1431993600000\": 0.886203171, \"1431561600000\": 0.8740676067, \"1422316800000\": 0.4252231564, \"1446681600000\": 0.4774650863, \"1447027200000\": 0.5310405728, \"1505692800000\": 0.5321519896, \"1439942400000\": 0.5492921585, \"1438128000000\": 0.5669305873, \"1509667200000\": 0.5917753645, \"1453420800000\": 0.2412493571, \"1503360000000\": 0.4959347454, \"1443484800000\": 0.2673188934, \"1484006400000\": 0.3388477593, \"1435276800000\": 0.7287179119, \"1442966400000\": 0.3008766789, \"1429056000000\": 0.746385045, \"1421020800000\": 0.4007646522, \"1461715200000\": 0.2621608799, \"1428364800000\": 0.6983570742, \"1481500800000\": 0.3591429357, \"1467936000000\": 0.2726714587, \"1422576000000\": 0.3691938461, \"1470182400000\": 0.2731606288, \"1448928000000\": 0.4319072849, \"1510531200000\": 0.6457456953, \"1445299200000\": 0.4263286729, \"1463443200000\": 0.2303106051, \"1501113600000\": 0.4799466976, \"1485302400000\": 0.3458771374, \"1449446400000\": 0.4701442793, \"1467072000000\": 0.2503940869, \"1478736000000\": 0.3517407997, \"1491782400000\": 0.3973995447, \"1501804800000\": 0.4781067882, \"1488758400000\": 0.3740153808, \"1479772800000\": 0.3827383159, \"1418169600000\": 0.2843405772, \"1465171200000\": 0.2672925811, \"1482364800000\": 0.3298377805, \"1488844800000\": 0.3769946538, \"1416960000000\": 0.0855908114, \"1487721600000\": 0.391267098, \"1514505600000\": 0.6069874777, \"1425859200000\": 0.4104005454, \"1476748800000\": 0.3241208294, \"1444867200000\": 0.3900942061, \"1453161600000\": 0.284968485, \"1463097600000\": 0.2258893367, \"1502064000000\": 0.4857673432, \"1510012800000\": 0.6163130449, \"1430092800000\": 0.9166497231, \"1432857600000\": 0.929901568, \"1498176000000\": 0.4443406968, \"1474243200000\": 0.3009149514, \"1444694400000\": 0.3734408949, \"1476835200000\": 0.3220911921, \"1416441600000\": 0.0114697827, \"1446768000000\": 0.5123105811, \"1495670400000\": 0.3896329829, \"1508198400000\": 0.5600295017, \"1490572800000\": 0.3865952646, \"1441843200000\": 0.3385643037, \"1424995200000\": 0.4243899327, \"1494547200000\": 0.3496544314, \"1438560000000\": 0.5266073443, \"1473811200000\": 0.2911897557, \"1466380800000\": 0.2409348052, \"1450310400000\": 0.4973659766, \"1499385600000\": 0.4575152791, \"1442880000000\": 0.3311765198, \"1430179200000\": 0.8904450371, \"1449532800000\": 0.4443952749, \"1467676800000\": 0.2786925963, \"1505779200000\": 0.5277559572, \"1425513600000\": 0.3938915533, \"1416268800000\": 0.0131920441, \"1487894400000\": 0.3849262258, \"1418774400000\": 0.3397758668, \"1497830400000\": 0.4167455239, \"1445385600000\": 0.3846878202, \"1471996800000\": 0.327521897, \"1427932800000\": 0.6444327501, \"1441756800000\": 0.3552064521, \"1436400000000\": 0.5538728955, \"1476403200000\": 0.3179477979, \"1436918400000\": 0.581434261, \"1486339200000\": 0.3448011227, \"1503014400000\": 0.4849221594, \"1456272000000\": 0.2396873617, \"1458518400000\": 0.2954583328, \"1513123200000\": 0.6146570427, \"1426032000000\": 0.4051779471, \"1431907200000\": 0.8239785036, \"1433203200000\": 1.0578911068, \"1435104000000\": 0.9455677682, \"1485216000000\": 0.3413111512, \"1504742400000\": 0.5268610191, \"1435536000000\": 0.6710516559, \"1437350400000\": 0.6587179518, \"1494201600000\": 0.3390632413, \"1447286400000\": 0.5130879908, \"1435881600000\": 0.5492048494, \"1460678400000\": 0.3045352884, \"1417046400000\": 0.0981370075, \"1489363200000\": 0.378645553, \"1441670400000\": 0.329180371, \"1447113600000\": 0.5282032268, \"1433462400000\": 1.0852718741, \"1482883200000\": 0.316369457, \"1482796800000\": 0.3221486009, \"1449100800000\": 0.4947391292, \"1438819200000\": 0.527650668, \"1471305600000\": 0.3468104277, \"1490140800000\": 0.3754371235, \"1432080000000\": 0.8956516886, \"1475020800000\": 0.2880641702, \"1496275200000\": 0.394448976, \"1436832000000\": 0.6393971288, \"1416355200000\": 0.0115176233, \"1484870400000\": 0.3374990532, \"1496966400000\": 0.4257176289, \"1418342400000\": 0.2730501967, \"1427673600000\": 0.6298413686, \"1451433600000\": 0.50106844, \"1454025600000\": 0.1745224911, \"1505347200000\": 0.5268945474, \"1502150400000\": 0.487927386, \"1509408000000\": 0.5973647407, \"1477612800000\": 0.3316134639, \"1488499200000\": 0.3665917164, \"1496620800000\": 0.3828937181, \"1468972800000\": 0.2907412502, \"1450656000000\": 0.5412505532, \"1452556800000\": 0.2820123349, \"1445472000000\": 0.4051317012, \"1488326400000\": 0.3787811014, \"1483920000000\": 0.3410918818, \"1503532800000\": 0.4888973141, \"1438905600000\": 0.5575881164, \"1509321600000\": 0.5985623104, \"1418860800000\": 0.3339273541, \"1421193600000\": 0.3963154768, \"1421366400000\": 0.4492311618, \"1471478400000\": 0.3413247061, \"1456876800000\": 0.216479889, \"1470268800000\": 0.2762630914, \"1439337600000\": 0.6011154832, \"1508371200000\": 0.5672776309, \"1477353600000\": 0.3425087608, \"1479945600000\": 0.390861649, \"1419292800000\": 0.3255512632, \"1482451200000\": 0.318645872, \"1457568000000\": 0.2012558156, \"1431302400000\": 0.8699812226, \"1425340800000\": 0.3985001973, \"1466726400000\": 0.2267743877, \"1492128000000\": 0.3899704186, \"1507593600000\": 0.5507782867, \"1464134400000\": 0.2196266042, \"1459987200000\": 0.2794528631, \"1468195200000\": 0.2770767802, \"1455580800000\": 0.2107796821, \"1429574400000\": 0.8415280286, \"1431475200000\": 0.8811081477, \"1464825600000\": 0.2626329072, \"1499644800000\": 0.456621258, \"1492387200000\": 0.3873540164, \"1444953600000\": 0.4089314404, \"1436227200000\": 0.5659833435, \"1467158400000\": 0.2563697759, \"1480377600000\": 0.4208816224, \"1432771200000\": 0.9271826275, \"1496361600000\": 0.3899715747, \"1476316800000\": 0.3166712514, \"1440028800000\": 0.4995849828, \"1477267200000\": 0.3425577974, \"1434672000000\": 0.8486610613, \"1456790400000\": 0.1683845427, \"1475193600000\": 0.2969924213, \"1431043200000\": 0.8173047406, \"1456099200000\": 0.2434041773, \"1472601600000\": 0.3266970454, \"1427846400000\": 0.644081919, \"1460332800000\": 0.2877476249, \"1417564800000\": 0.1830779842, \"1425427200000\": 0.407637751, \"1464739200000\": 0.260020412, \"1442275200000\": 0.2567054574, \"1468540800000\": 0.306159078, \"1457308800000\": 0.2378116117, \"1454457600000\": 0.175538705, \"1512345600000\": 0.6022042953, \"1483574400000\": 0.3426419171, \"1497225600000\": 0.4250076346, \"1480464000000\": 0.410500612, \"1455840000000\": 0.2165803543, \"1469145600000\": 0.2857805791, \"1418256000000\": 0.2689757727, \"1499126400000\": 0.4431849478, \"1460505600000\": 0.3002208641, \"1478649600000\": 0.3367678894, \"1474934400000\": 0.2919970658, \"1469577600000\": 0.2830221701, \"1448236800000\": 0.4963481679, \"1475107200000\": 0.2934450411, \"1458691200000\": 0.29013806, \"1436140800000\": 0.594103248, \"1513728000000\": 0.6068419227, \"1502928000000\": 0.4835675529, \"1512432000000\": 0.6107013033, \"1500595200000\": 0.4864860684, \"1487116800000\": 0.3641398859, \"1465776000000\": 0.2224631528, \"1424822400000\": 0.386870946, \"1456358400000\": 0.1636228088, \"1467244800000\": 0.2573788138, \"1419206400000\": 0.3532828615, \"1419984000000\": 0.408789912, \"1432166400000\": 0.9299613687, \"1464912000000\": 0.2714937827, \"1436313600000\": 0.4603493161, \"1493164800000\": 0.3734967887, \"1505260800000\": 0.5319380225, \"1464566400000\": 0.2226102626, \"1500854400000\": 0.4924147142, \"1493769600000\": 0.3607173697, \"1472169600000\": 0.3184429481, \"1421107200000\": 0.4009480411, \"1439164800000\": 0.6283204363, \"1463356800000\": 0.2340118724, \"1481846400000\": 0.3339676199, \"1440633600000\": 0.2779969143, \"1430956800000\": 0.7820980493, \"1490054400000\": 0.3819341155, \"1489622400000\": 0.3879780571, \"1451260800000\": 0.4861011111, \"1504224000000\": 0.5271269331, \"1421971200000\": 0.4239474072, \"1438300800000\": 0.5216095968, \"1491350400000\": 0.3969027999, \"1457913600000\": 0.2222036175, \"1458000000000\": 0.2258275426, \"1503446400000\": 0.4974458704, \"1470787200000\": 0.2930280306, \"1461801600000\": 0.2600339668, \"1468454400000\": 0.3063528324, \"1489536000000\": 0.3808565859, \"1426550400000\": 0.49785714, \"1486080000000\": 0.3413274968, \"1504656000000\": 0.5346664514, \"1514419200000\": 0.6022203618, \"1470355200000\": 0.2777864157, \"1426464000000\": 0.4773454848, \"1511827200000\": 0.6169417501, \"1417996800000\": 0.2968309592, \"1447718400000\": 0.498362257, \"1484611200000\": 0.3261237556, \"1434585600000\": 0.9656699876, \"1468281600000\": 0.3049247906, \"1467590400000\": 0.2776213656, \"1493683200000\": 0.3660788652, \"1486684800000\": 0.3608604131, \"1481241600000\": 0.3928390603, \"1502409600000\": 0.4540950752, \"1469404800000\": 0.2880621768, \"1451952000000\": 0.3868908796, \"1501200000000\": 0.4838124968, \"1432684800000\": 1.0656891238, \"1450224000000\": 0.4692803578, \"1500508800000\": 0.4941751285, \"1420416000000\": 0.4517786735, \"1433894400000\": 1.1165915171, \"1473292800000\": 0.3313894105, \"1512950400000\": 0.622394063, \"1476921600000\": 0.3230332532, \"1462320000000\": 0.2795210359, \"1499904000000\": 0.4698705912, \"1480032000000\": 0.4038415998, \"1499817600000\": 0.4586691544, \"1508284800000\": 0.5724257175, \"1501459200000\": 0.490183987, \"1435622400000\": 0.7832573864, \"1430784000000\": 0.8326296779, \"1452816000000\": 0.2433491606, \"1490313600000\": 0.391204387, \"1488412800000\": 0.3694753083, \"1495065600000\": 0.3547311159, \"1503273600000\": 0.4914282012, \"1428624000000\": 0.731996986, \"1451347200000\": 0.4997528236, \"1422835200000\": 0.3371286872, \"1455667200000\": 0.2212587658, \"1435017600000\": 0.9080786818, \"1498435200000\": 0.4623641626, \"1435795200000\": 0.6377414455, \"1505088000000\": 0.5251762328, \"1462492800000\": 0.2479833196, \"1478822400000\": 0.362349053, \"1439251200000\": 0.6212655432, \"1491868800000\": 0.4022588734, \"1446076800000\": 0.4086292473, \"1511395200000\": 0.6355091236, \"1485129600000\": 0.3411636427, \"1437523200000\": 0.6573417373, \"1428019200000\": 0.6626759637, \"1420675200000\": 0.4189759721, \"1502668800000\": 0.4729653196, \"1478563200000\": 0.343969095, \"1421280000000\": 0.4368603812, \"1452729600000\": 0.2843489493, \"1443571200000\": 0.2769244876, \"1460937600000\": 0.2870926074, \"1422230400000\": 0.4384032404, \"1487203200000\": 0.3718023546, \"1419465600000\": 0.3297373153, \"1511913600000\": 0.6161162606, \"1441065600000\": 0.3403670968, \"1504828800000\": 0.5253134556, \"1489104000000\": 0.3666032779, \"1450137600000\": 0.4728480702, \"1423008000000\": 0.3561891777, \"1492473600000\": 0.3804973429, \"1433808000000\": 1.1199204251, \"1511222400000\": 0.6814779156, \"1465862400000\": 0.2263071446, \"1451001600000\": 0.5301818341, \"1480982400000\": 0.3790661516, \"1431388800000\": 0.8926616514, \"1425254400000\": 0.4357241671, \"1511308800000\": 0.685410851, \"1421884800000\": 0.4223048801, \"1423785600000\": 0.3833227685, \"1474502400000\": 0.3120765609, \"1445904000000\": 0.4323789135, \"1504569600000\": 0.5376949604, \"1471824000000\": 0.3302854888, \"1490832000000\": 0.3701379005, \"1425600000000\": 0.386787225, \"1482192000000\": 0.3192299259, \"1489708800000\": 0.3737446827, \"1421798400000\": 0.4148417473, \"1464220800000\": 0.2216139822, \"1446595200000\": 0.446595145, \"1481068800000\": 0.3856817085, \"1470096000000\": 0.2713849454, \"1488931200000\": 0.3749111959, \"1483056000000\": 0.3196353749, \"1448409600000\": 0.5076194121, \"1478131200000\": 0.3415639091, \"1447372800000\": 0.4935203901, \"1466467200000\": 0.2384008484, \"1454630400000\": 0.1815785802, \"1508976000000\": 0.5921251191, \"1495411200000\": 0.3599640797, \"1476230400000\": 0.315620353, \"1426118400000\": 0.4323633653, \"1453075200000\": 0.2481328214, \"1421712000000\": 0.3539765501, \"1484524800000\": 0.3233689347, \"1514160000000\": 0.6112473638, \"1458864000000\": 0.2748789035, \"1477526400000\": 0.3338336662, \"1442361600000\": 0.3193032815, \"1510617600000\": 0.6342949293, \"1497916800000\": 0.4138865301, \"1427328000000\": 0.5747529233, \"1492646400000\": 0.38002101, \"1507507200000\": 0.5477260169, \"1426809600000\": 0.5518572118, \"1457654400000\": 0.2033041904, \"1514332800000\": 0.5911811843, \"1444348800000\": 0.3316094772, \"1432598400000\": 1.0726618906, \"1497312000000\": 0.4281483696, \"1484179200000\": 0.322642555, \"1462752000000\": 0.2221737172, \"1434499200000\": 1.0487061112, \"1432512000000\": 1.0330259575, \"1425945600000\": 0.4035673137, \"1426636800000\": 0.5333149944, \"1502841600000\": 0.4756514095, \"1448841600000\": 0.4218272715, \"1454544000000\": 0.1899391228, \"1423180800000\": 0.3205678679, \"1488153600000\": 0.3739113275, \"1453248000000\": 0.2655344392, \"1468886400000\": 0.2949787309, \"1457049600000\": 0.2334461574, \"1487808000000\": 0.3847157272, \"1488240000000\": 0.3765373775, \"1513814400000\": 0.6217357764, \"1440460800000\": 0.2131286553, \"1418688000000\": 0.3169718498, \"1443398400000\": 0.292793213, \"1507852800000\": 0.5631921238, \"1512518400000\": 0.6009939282, \"1427241600000\": 0.5709296624, \"1453939200000\": 0.1377115451, \"1503964800000\": 0.5287213405, \"1457481600000\": 0.224682159, \"1443052800000\": 0.3096358932, \"1418601600000\": 0.2826183158, \"1426723200000\": 0.5307953898, \"1508803200000\": 0.5784985628, \"1467331200000\": 0.2574900432, \"1459209600000\": 0.2499990033, \"1434067200000\": 1.1269609661, \"1417392000000\": 0.1241782381, \"1436486400000\": 0.6371673584, \"1462838400000\": 0.2235678719, \"1510272000000\": 0.6393023247, \"1424131200000\": 0.4042490422, \"1457395200000\": 0.2389410484, \"1513900800000\": 0.6164533375, \"1428969600000\": 0.7693764377, \"1438732800000\": 0.5416233111, \"1441929600000\": 0.334428883, \"1510185600000\": 0.6249456013, \"1469491200000\": 0.3034919648, \"1504483200000\": 0.5331381038, \"1433980800000\": 1.1155868646, \"1426204800000\": 0.442258395, \"1472774400000\": 0.3212432176, \"1498694400000\": 0.4626575849, \"1455753600000\": 0.2174231461, \"1439424000000\": 0.6247714615, \"1510704000000\": 0.6240564838, \"1495584000000\": 0.3651181862, \"1493856000000\": 0.3572322621, \"1487635200000\": 0.388502709, \"1440720000000\": 0.3324745947, \"1464307200000\": 0.2209314564, \"1481673600000\": 0.3470894978, \"1481760000000\": 0.3317362548, \"1470700800000\": 0.2984659116, \"1501632000000\": 0.4993451819, \"1511136000000\": 0.6520288, \"1464652800000\": 0.2636136394, \"1459382400000\": 0.282960376, \"1512000000000\": 0.5971181224, \"1464048000000\": 0.2213528523, \"1494374400000\": 0.3306465656, \"1449705600000\": 0.4444207899, \"1482278400000\": 0.3309795761, \"1473638400000\": 0.3007076421, \"1461542400000\": 0.260612838, \"1479081600000\": 0.3675425482, \"1433376000000\": 1.0656851371, \"1454284800000\": 0.1565655237, \"1470009600000\": 0.26650361, \"1474416000000\": 0.3023150861, \"1473206400000\": 0.331888946, \"1490918400000\": 0.3778272795, \"1445212800000\": 0.408978085, \"1424044800000\": 0.3951433823, \"1459296000000\": 0.2822375844, \"1508716800000\": 0.5670976706, \"1465344000000\": 0.2613914437, \"1458259200000\": 0.2645716473, \"1496707200000\": 0.3925127874, \"1499040000000\": 0.4554888312, \"1476057600000\": 0.3131721105, \"1465948800000\": 0.2424074982, \"1442534400000\": 0.2961902939, \"1485388800000\": 0.3506839212, \"1450396800000\": 0.5021600029, \"1428537600000\": 0.6991942846, \"1491523200000\": 0.4023128536, \"1506470400000\": 0.5234040178, \"1458777600000\": 0.2685137123, \"1415577600000\": 0.0228837513, \"1417478400000\": 0.1656919145, \"1420502400000\": 0.4515873111, \"1463702400000\": 0.2271981757, \"1438646400000\": 0.5740173741, \"1499299200000\": 0.4591767032, \"1474588800000\": 0.3059154896, \"1430265600000\": 0.9033899048, \"1449014400000\": 0.4838378523, \"1461888000000\": 0.2585046625, \"1481155200000\": 0.3834475528, \"1434412800000\": 1.0192004242, \"1440547200000\": 0.2062575498, \"1506643200000\": 0.529504212, \"1511740800000\": 0.6145991556, \"1435190400000\": 0.8763543872, \"1505952000000\": 0.5300289834, \"1449619200000\": 0.449545315, \"1456444800000\": 0.1752963127, \"1450051200000\": 0.4795987769, \"1503878400000\": 0.531980202, \"1453680000000\": 0.2473980696, \"1502323200000\": 0.4814321879, \"1423699200000\": 0.3725745815, \"1495756800000\": 0.3875504818, \"1437091200000\": 0.6550836612, \"1472428800000\": 0.3187184302, \"1504137600000\": 0.5237599518, \"1498608000000\": 0.4536231676, \"1473724800000\": 0.2998022589, \"1486598400000\": 0.3540052545, \"1497398400000\": 0.4094232816, \"1511481600000\": 0.6362294435, \"1445558400000\": 0.4237524568, \"1467849600000\": 0.279717581, \"1454371200000\": 0.1805998413, \"1429747200000\": 0.8900583257, \"1461024000000\": 0.2910195229, \"1478217600000\": 0.3372144016, \"1441152000000\": 0.3418617168, \"1487289600000\": 0.3640318459, \"1438214400000\": 0.5210965064, \"1432252800000\": 0.9739587694, \"1446508800000\": 0.3815937297, \"1463616000000\": 0.2209318551, \"1415836800000\": 0.0284731275, \"1491436800000\": 0.400950792, \"1415923200000\": 0.0290073475, \"1419379200000\": 0.2878648344, \"1497484800000\": 0.4068294842, \"1468800000000\": 0.3004756152, \"1415059200000\": 0.0019295707, \"1458086400000\": 0.2319084809, \"1461628800000\": 0.2674412856, \"1482710400000\": 0.3245470094, \"1484092800000\": 0.329368544, \"1469059200000\": 0.2966886335, \"1423094400000\": 0.3423074316, \"1489449600000\": 0.3780854194, \"1452038400000\": 0.4112210116, \"1437436800000\": 0.6608683865, \"1471392000000\": 0.3447385312, \"1507766400000\": 0.5599835747, \"1473033600000\": 0.3234622239, \"1500422400000\": 0.4869441421, \"1447977600000\": 0.5047394083, \"1459814400000\": 0.3014579421, \"1496793600000\": 0.4088544171, \"1448323200000\": 0.496569032, \"1479859200000\": 0.3852758608, \"1499990400000\": 0.4763185067, \"1456185600000\": 0.231641371, \"1506384000000\": 0.5232372136, \"1445817600000\": 0.4309365195, \"1442188800000\": 0.30809423, \"1438041600000\": 0.5193746437, \"1453766400000\": 0.1722975047, \"1463529600000\": 0.2231389012, \"1513036800000\": 0.6010717489, \"1480896000000\": 0.3831541304, \"1497571200000\": 0.4028302097, \"1436745600000\": 0.679129939, \"1501545600000\": 0.5031446421, \"1414972800000\": 0.0016823943, \"1456963200000\": 0.2193060722, \"1439510400000\": 0.624004816, \"1430352000000\": 0.8936463703, \"1494979200000\": 0.3594565308, \"1476144000000\": 0.3182304561, \"1440374400000\": 0.3058624663, \"1498089600000\": 0.4313676829, \"1470873600000\": 0.2890488891, \"1484697600000\": 0.3313100748, \"1442793600000\": 0.3189042112, \"1499212800000\": 0.4590103774, \"1476662400000\": 0.3067973512, \"1444780800000\": 0.3579202099, \"1483488000000\": 0.3428504224, \"1500336000000\": 0.462000893, \"1490745600000\": 0.3814742478, \"1459900800000\": 0.298683985, \"1428883200000\": 0.7625551662, \"1503619200000\": 0.5132595791, \"1416787200000\": 0.0561847923, \"1422489600000\": 0.3880948679, \"1482105600000\": 0.327171066, \"1448496000000\": 0.4987776728, \"1455494400000\": 0.1747684715, \"1430870400000\": 0.8152834755, \"1439856000000\": 0.5250832227, \"1509494400000\": 0.5933398317, \"1513641600000\": 0.6087713339, \"1473379200000\": 0.3228099971, \"1472515200000\": 0.3203952431, \"1447804800000\": 0.4812963207, \"1502755200000\": 0.4774996113, \"1415145600000\": -0.0019455175, \"1510876800000\": 0.6428662895, \"1496880000000\": 0.4196611291, \"1477872000000\": 0.3300793755, \"1423440000000\": 0.3339233673, \"1471564800000\": 0.3415379954, \"1479686400000\": 0.3718733181, \"1501718400000\": 0.4861786129, \"1466985600000\": 0.2440723509, \"1491955200000\": 0.3991136334, \"1460419200000\": 0.2831046952, \"1489968000000\": 0.3752628243, \"1472083200000\": 0.3191932481, \"1421625600000\": 0.3376070932, \"1479168000000\": 0.3673918504, \"1440115200000\": 0.4310461542, \"1466035200000\": 0.2337591146, \"1466640000000\": 0.2427858376, \"1440979200000\": 0.3421423816, \"1433116800000\": 1.0237289352, \"1479427200000\": 0.3624423421, \"1493078400000\": 0.3718188197, \"1419811200000\": 0.3775938573, \"1463011200000\": 0.2319499428, \"1417132800000\": 0.1197968369, \"1428451200000\": 0.7126135716, \"1462924800000\": 0.2290284771, \"1505174400000\": 0.5300754287, \"1498780800000\": 0.4618482018, \"1513209600000\": 0.6051124055, \"1492992000000\": 0.3679454856, \"1452470400000\": 0.2727392329, \"1508112000000\": 0.5601799604, \"1495152000000\": 0.3570180957, \"1484784000000\": 0.3272930595}, \"benchmark_annualized_return\": 0.16535, \"turnover_rate\": 8.34778, \"max_drawdown\": 0.5036, \"beta\": 1.05283, \"sharpe\": 0.50031, \"alpha\": 0.01524, \"volatility\": 0.30476, \"annualized_return\": 0.18747, \"cumulative_return\": {\"1419897600000\": 0.3851988313, \"1477008000000\": 0.4113399733, \"1468368000000\": 0.4436722782, \"1506038400000\": 0.683354141, \"1492560000000\": 0.4857185278, \"1446422400000\": 0.5239444598, \"1459468800000\": 0.3554992717, \"1477440000000\": 0.4196392933, \"1486944000000\": 0.483319954, \"1496188800000\": 0.4741011978, \"1500249600000\": 0.5914026109, \"1415232000000\": 0.0230422613, \"1420761600000\": 0.3959768213, \"1483401600000\": 0.4112200533, \"1429488000000\": 0.9055884687, \"1458604800000\": 0.3600458117, \"1477958400000\": 0.4108636033, \"1429833600000\": 1.0122606787, \"1449187200000\": 0.5489484898, \"1469664000000\": 0.4088991489, \"1419552000000\": 0.4040551913, \"1472688000000\": 0.4127547889, \"1433721600000\": 1.3771889941, \"1478476800000\": 0.4068801633, \"1427760000000\": 0.6720785487, \"1420588800000\": 0.4510721813, \"1422921600000\": 0.3461990487, \"1450828800000\": 0.6134198398, \"1480550400000\": 0.5078811333, \"1509062400000\": 0.7356712262, \"1453334400000\": 0.2967974017, \"1437696000000\": 0.8519458641, \"1442448000000\": 0.3345718954, \"1490659200000\": 0.473107554, \"1422403200000\": 0.3952570387, \"1471219200000\": 0.4554269789, \"1456704000000\": 0.2140540917, \"1483660800000\": 0.4198231533, \"1458172800000\": 0.2954928317, \"1513296000000\": 0.6932747262, \"1481587200000\": 0.4182507033, \"1484265600000\": 0.3977861533, \"1508889600000\": 0.7258129262, \"1486512000000\": 0.448215034, \"1493337600000\": 0.4725651278, \"1463961600000\": 0.2653739782, \"1487030400000\": 0.489275774, \"1453852800000\": 0.2361039717, \"1504051200000\": 0.6761550009, \"1416873600000\": 0.1115427613, \"1509926400000\": 0.7447898262, \"1461283200000\": 0.3271089382, \"1489017600000\": 0.456233054, \"1501027200000\": 0.6113189809, \"1429228800000\": 0.9261390087, \"1466121600000\": 0.2942925082, \"1448582400000\": 0.5142017398, \"1462233600000\": 0.3461531882, \"1480636800000\": 0.4937616433, \"1482969600000\": 0.4027286033, \"1474329600000\": 0.3861123589, \"1450742400000\": 0.6253960098, \"1423526400000\": 0.3441781487, \"1415318400000\": 0.0178959513, \"1493251200000\": 0.4752152978, \"1500940800000\": 0.6223700909, \"1416528000000\": 0.0644961613, \"1508457600000\": 0.7006247262, \"1451865600000\": 0.4743446298, \"1452643200000\": 0.3113038698, \"1459123200000\": 0.3328956317, \"1471910400000\": 0.4321600989, \"1461110400000\": 0.3395395717, \"1498003200000\": 0.5729042178, \"1480291200000\": 0.4947183833, \"1499731200000\": 0.5973972178, \"1431648000000\": 1.0324624341, \"1434326400000\": 1.3995841441, \"1444262400000\": 0.4124626054, \"1437004800000\": 0.6620501141, \"1446163200000\": 0.5490743998, \"1494460800000\": 0.4308984878, \"1418947200000\": 0.4136099913, \"1510099200000\": 0.7617521262, \"1474848000000\": 0.3605317089, \"1490227200000\": 0.474337004, \"1512604800000\": 0.6473937262, \"1444608000000\": 0.4780823054, \"1430697600000\": 1.0487622441, \"1494806400000\": 0.4527131778, \"1417737600000\": 0.2400220213, \"1437609600000\": 0.8829205441, \"1466553600000\": 0.3054991982, \"1487548800000\": 0.491841984, \"1509580800000\": 0.7075552262, \"1439769600000\": 0.8111447755, \"1427414400000\": 0.6356187287, \"1449792000000\": 0.5265578898, \"1498521600000\": 0.6040539378, \"1495497600000\": 0.4719356078, \"1450915200000\": 0.6132407098, \"1512086400000\": 0.6750933262, \"1493942400000\": 0.4563174978, \"1452211200000\": 0.4134601598, \"1494288000000\": 0.4239470178, \"1435708800000\": 0.8432176841, \"1427068800000\": 0.6249945487, \"1441584000000\": 0.3596079755, \"1505865600000\": 0.687828141, \"1470614400000\": 0.4060060189, \"1467763200000\": 0.3866350582, \"1417651200000\": 0.2395079713, \"1506556800000\": 0.683926611, \"1469750400000\": 0.3995587689, \"1460073600000\": 0.3481782617, \"1447200000000\": 0.6341234198, \"1473120000000\": 0.4376251989, \"1443139200000\": 0.3608780154, \"1479340800000\": 0.4520496333, \"1505433600000\": 0.682860331, \"1451520000000\": 0.5858850898, \"1507680000000\": 0.711646861, \"1429660800000\": 0.9875570387, \"1513555200000\": 0.6812684262, \"1433289600000\": 1.3114864741, \"1429142400000\": 0.8707966287, \"1465257600000\": 0.3301536882, \"1514246400000\": 0.6972896262, \"1478044800000\": 0.3949597633, \"1492732800000\": 0.4868452778, \"1492041600000\": 0.519921484, \"1447891200000\": 0.5923675298, \"1418083200000\": 0.2522707813, \"1445990400000\": 0.5455416498, \"1486425600000\": 0.439442404, \"1452124800000\": 0.3879337798, \"1479254400000\": 0.4411045533, \"1447632000000\": 0.6058878198, \"1423612800000\": 0.3550263987, \"1415750400000\": 0.0507783313, \"1415664000000\": 0.0266192013, \"1427155200000\": 0.6328877587, \"1437955200000\": 0.7146929255, \"1510790400000\": 0.7744336262, \"1502236800000\": 0.6280166609, \"1416182400000\": 0.0392703313, \"1506297600000\": 0.671906471, \"1424908800000\": 0.4236706587, \"1512691200000\": 0.6705382262, \"1494892800000\": 0.4863921578, \"1462406400000\": 0.3395290382, \"1460592000000\": 0.3904499417, \"1470960000000\": 0.4174547489, \"1461196800000\": 0.3276340317, \"1431993600000\": 1.0891583841, \"1431561600000\": 1.0539521241, \"1422316800000\": 0.4247669313, \"1446681600000\": 0.5845469198, \"1447027200000\": 0.6293716298, \"1505692800000\": 0.687741991, \"1439942400000\": 0.7269366255, \"1438128000000\": 0.7683697055, \"1509667200000\": 0.7073041262, \"1453420800000\": 0.3095187717, \"1503360000000\": 0.6408989809, \"1443484800000\": 0.3517220354, \"1484006400000\": 0.4252323233, \"1435276800000\": 0.9344644541, \"1442966400000\": 0.3891141154, \"1429056000000\": 0.8328964387, \"1421020800000\": 0.3676927413, \"1461715200000\": 0.3173444882, \"1428364800000\": 0.7512473287, \"1481500800000\": 0.4125710933, \"1467936000000\": 0.3793290382, \"1422576000000\": 0.3439753987, \"1470182400000\": 0.3910756189, \"1448928000000\": 0.5263670898, \"1510531200000\": 0.8131016262, \"1445299200000\": 0.5642732154, \"1463443200000\": 0.2677367982, \"1501113600000\": 0.6059389609, \"1485302400000\": 0.439450594, \"1449446400000\": 0.5663147898, \"1467072000000\": 0.3192355082, \"1478736000000\": 0.4238652833, \"1491782400000\": 0.514570384, \"1501804800000\": 0.603249211, \"1488758400000\": 0.468129974, \"1479772800000\": 0.4555860933, \"1418169600000\": 0.2963654213, \"1465171200000\": 0.3290353082, \"1482364800000\": 0.4072171533, \"1488844800000\": 0.467763294, \"1416960000000\": 0.1216427513, \"1487721600000\": 0.505369394, \"1514505600000\": 0.7034609262, \"1425859200000\": 0.4064166587, \"1476748800000\": 0.4059018889, \"1444867200000\": 0.5162445854, \"1453161600000\": 0.3609783698, \"1463097600000\": 0.2503025482, \"1502064000000\": 0.618837761, \"1510012800000\": 0.7591580262, \"1430092800000\": 1.0583931787, \"1432857600000\": 1.1408202741, \"1498176000000\": 0.5772397478, \"1474243200000\": 0.3869499789, \"1444694400000\": 0.4846579554, \"1476835200000\": 0.4048679189, \"1416441600000\": 0.0448931713, \"1446768000000\": 0.6151357198, \"1495670400000\": 0.4797670778, \"1508198400000\": 0.6987074262, \"1490572800000\": 0.477813864, \"1441843200000\": 0.4235808454, \"1424995200000\": 0.4294666087, \"1494547200000\": 0.4382747078, \"1438560000000\": 0.6380261655, \"1473811200000\": 0.3743674689, \"1466380800000\": 0.2928323582, \"1450310400000\": 0.5879920798, \"1499385600000\": 0.6001062378, \"1442880000000\": 0.4057974954, \"1430179200000\": 1.0344469587, \"1449532800000\": 0.5308781198, \"1467676800000\": 0.3710872282, \"1505779200000\": 0.681743291, \"1425513600000\": 0.4056592087, \"1416268800000\": 0.0424968213, \"1487894400000\": 0.482309554, \"1418774400000\": 0.3750355313, \"1497830400000\": 0.5412934678, \"1445385600000\": 0.4840392554, \"1471996800000\": 0.4276559189, \"1427932800000\": 0.6977865087, \"1441756800000\": 0.4437511154, \"1436400000000\": 0.5279111041, \"1476403200000\": 0.3983018889, \"1436918400000\": 0.6257911341, \"1486339200000\": 0.438985814, \"1503014400000\": 0.6231208309, \"1456272000000\": 0.3223120917, \"1458518400000\": 0.3701068917, \"1513123200000\": 0.7165626262, \"1426032000000\": 0.3940544787, \"1431907200000\": 1.0340235041, \"1433203200000\": 1.3111111241, \"1435104000000\": 1.2017598441, \"1485216000000\": 0.432671734, \"1504742400000\": 0.6841646309, \"1435536000000\": 0.8451391241, \"1437350400000\": 0.7929483141, \"1494201600000\": 0.4227513678, \"1447286400000\": 0.6202593298, \"1435881600000\": 0.6319831241, \"1460678400000\": 0.3881223717, \"1417046400000\": 0.1343653013, \"1489363200000\": 0.467936404, \"1441670400000\": 0.4036206355, \"1447113600000\": 0.6227374298, \"1433462400000\": 1.3557144641, \"1482883200000\": 0.4019493233, \"1482796800000\": 0.4091178933, \"1449100800000\": 0.5651717498, \"1438819200000\": 0.6652154155, \"1471305600000\": 0.4492562089, \"1490140800000\": 0.472161074, \"1432080000000\": 1.1025309341, \"1475020800000\": 0.3638987389, \"1496275200000\": 0.4756337778, \"1436832000000\": 0.7200825141, \"1416355200000\": 0.0428954713, \"1484870400000\": 0.416924664, \"1496966400000\": 0.5524595578, \"1418342400000\": 0.3151248213, \"1427673600000\": 0.6906601087, \"1451433600000\": 0.6068947898, \"1454025600000\": 0.2433339317, \"1505347200000\": 0.690010141, \"1502150400000\": 0.6192671809, \"1509408000000\": 0.7173673262, \"1477612800000\": 0.3984934033, \"1488499200000\": 0.460226294, \"1496620800000\": 0.4739313078, \"1468972800000\": 0.4142118989, \"1450656000000\": 0.6209915698, \"1452556800000\": 0.3473857198, \"1445472000000\": 0.5363657354, \"1488326400000\": 0.480509344, \"1483920000000\": 0.4295197933, \"1503532800000\": 0.6258632209, \"1438905600000\": 0.7099140955, \"1509321600000\": 0.7024278262, \"1418860800000\": 0.3767756813, \"1421193600000\": 0.3674013313, \"1421366400000\": 0.4066887313, \"1471478400000\": 0.4457552489, \"1456876800000\": 0.2949190217, \"1470268800000\": 0.3924962689, \"1439337600000\": 0.7490408455, \"1508371200000\": 0.6896364262, \"1477353600000\": 0.4212927033, \"1479945600000\": 0.4650295833, \"1419292800000\": 0.3400474413, \"1482451200000\": 0.3974000033, \"1457568000000\": 0.2471112017, \"1431302400000\": 1.0047836141, \"1425340800000\": 0.4166014187, \"1466726400000\": 0.2833205482, \"1492128000000\": 0.503016264, \"1507593600000\": 0.707088321, \"1464134400000\": 0.2538613282, \"1459987200000\": 0.3556671617, \"1468195200000\": 0.3964745782, \"1455580800000\": 0.2916238617, \"1429574400000\": 0.9311648087, \"1431475200000\": 1.0495877441, \"1464825600000\": 0.3210079282, \"1499644800000\": 0.5972232078, \"1492387200000\": 0.496904324, \"1444953600000\": 0.5432906454, \"1436227200000\": 0.5436817441, \"1467158400000\": 0.3250470682, \"1480377600000\": 0.5081631733, \"1432771200000\": 1.1533204341, \"1496361600000\": 0.4762373878, \"1476316800000\": 0.4002209589, \"1440028800000\": 0.6583151355, \"1477267200000\": 0.4246525733, \"1434672000000\": 1.0937530741, \"1456790400000\": 0.2402099317, \"1475193600000\": 0.3761908889, \"1431043200000\": 0.9215339341, \"1456099200000\": 0.3281913717, \"1472601600000\": 0.4218560589, \"1427846400000\": 0.7024501387, \"1460332800000\": 0.3678085617, \"1417564800000\": 0.1997898513, \"1425427200000\": 0.4175344187, \"1464739200000\": 0.3138017282, \"1442275200000\": 0.2750820954, \"1468540800000\": 0.4295518982, \"1457308800000\": 0.2947939017, \"1454457600000\": 0.2535287417, \"1512345600000\": 0.6786551262, \"1483574400000\": 0.4264252433, \"1497225600000\": 0.5550394278, \"1480464000000\": 0.4923259833, \"1455840000000\": 0.2950751917, \"1469145600000\": 0.4111651789, \"1418256000000\": 0.3058385213, \"1499126400000\": 0.5782081378, \"1460505600000\": 0.3823118817, \"1478649600000\": 0.4059717233, \"1474934400000\": 0.3699289189, \"1469577600000\": 0.4026127889, \"1448236800000\": 0.5959826098, \"1475107200000\": 0.3685669689, \"1458691200000\": 0.3694397317, \"1436140800000\": 0.6176590041, \"1513728000000\": 0.7021880262, \"1502928000000\": 0.6232487709, \"1512432000000\": 0.6505173262, \"1500595200000\": 0.6333510009, \"1487116800000\": 0.472711464, \"1465776000000\": 0.2675629182, \"1424822400000\": 0.3716113787, \"1456358400000\": 0.2442137317, \"1467244800000\": 0.3275337382, \"1419206400000\": 0.3810410313, \"1419984000000\": 0.4061011113, \"1432166400000\": 1.1397975941, \"1464912000000\": 0.3263409082, \"1436313600000\": 0.4529335141, \"1493164800000\": 0.4799894578, \"1505260800000\": 0.698915271, \"1464566400000\": 0.2566729582, \"1500854400000\": 0.6333666809, \"1493769600000\": 0.4654905078, \"1472169600000\": 0.4183412989, \"1421107200000\": 0.3712359213, \"1439164800000\": 0.7893465954, \"1463356800000\": 0.2637840882, \"1481846400000\": 0.4001273233, \"1440633600000\": 0.3510679355, \"1430956800000\": 0.8483951641, \"1490054400000\": 0.477913494, \"1489622400000\": 0.481796034, \"1451260800000\": 0.5828456998, \"1504224000000\": 0.6807069009, \"1421971200000\": 0.3958425813, \"1438300800000\": 0.6791614855, \"1491350400000\": 0.499382304, \"1457913600000\": 0.2771429617, \"1458000000000\": 0.2674282117, \"1503446400000\": 0.6374960709, \"1470787200000\": 0.4176849889, \"1461801600000\": 0.3161048182, \"1468454400000\": 0.4328497782, \"1489536000000\": 0.470619214, \"1426550400000\": 0.5095264387, \"1486080000000\": 0.437234574, \"1504656000000\": 0.6926734309, \"1514419200000\": 0.6956777262, \"1470355200000\": 0.3897610289, \"1426464000000\": 0.4800945687, \"1511827200000\": 0.6843690262, \"1417996800000\": 0.3011351313, \"1447718400000\": 0.5824932998, \"1484611200000\": 0.403310134, \"1434585600000\": 1.2511172941, \"1468281600000\": 0.4354224182, \"1467590400000\": 0.3728808782, \"1493683200000\": 0.4775269778, \"1486684800000\": 0.471028834, \"1481241600000\": 0.4624167433, \"1502409600000\": 0.584664751, \"1469404800000\": 0.4124993989, \"1451952000000\": 0.4716246598, \"1501200000000\": 0.619913141, \"1432684800000\": 1.3321485741, \"1450224000000\": 0.5622166098, \"1500508800000\": 0.641393141, \"1420416000000\": 0.4321236313, \"1433894400000\": 1.3915641341, \"1473292800000\": 0.4296905989, \"1512950400000\": 0.7174059262, \"1476921600000\": 0.4080210189, \"1462320000000\": 0.3375948882, \"1499904000000\": 0.5937005578, \"1480032000000\": 0.4806652633, \"1499817600000\": 0.5938049978, \"1508284800000\": 0.7057778262, \"1501459200000\": 0.633381911, \"1435622400000\": 0.9414328141, \"1430784000000\": 0.9567594541, \"1452816000000\": 0.3093668498, \"1490313600000\": 0.488323404, \"1488412800000\": 0.467362024, \"1495065600000\": 0.4745224078, \"1503273600000\": 0.6315343009, \"1428624000000\": 0.8010788187, \"1451347200000\": 0.5987221598, \"1422835200000\": 0.3060449787, \"1455667200000\": 0.2999287917, \"1435017600000\": 1.1436797541, \"1498435200000\": 0.6028870978, \"1435795200000\": 0.7343590341, \"1505088000000\": 0.6894936309, \"1462492800000\": 0.2944904182, \"1478822400000\": 0.4334778933, \"1439251200000\": 0.7732015455, \"1491868800000\": 0.524558374, \"1446076800000\": 0.5524073998, \"1511395200000\": 0.6980609262, \"1485129600000\": 0.428104074, \"1437523200000\": 0.8318014541, \"1428019200000\": 0.7154159787, \"1420675200000\": 0.4118566813, \"1502668800000\": 0.614164081, \"1478563200000\": 0.4137111033, \"1421280000000\": 0.3979075613, \"1452729600000\": 0.3482157298, \"1443571200000\": 0.3636919654, \"1460937600000\": 0.3664306817, \"1422230400000\": 0.4192139513, \"1487203200000\": 0.481981224, \"1419465600000\": 0.3597233813, \"1511913600000\": 0.6767261262, \"1441065600000\": 0.3950734355, \"1504828800000\": 0.6828787909, \"1489104000000\": 0.456530274, \"1450137600000\": 0.5621361098, \"1423008000000\": 0.3356667187, \"1492473600000\": 0.491720394, \"1433808000000\": 1.3877152041, \"1511222400000\": 0.7852625262, \"1465862400000\": 0.2646528482, \"1451001600000\": 0.6124896498, \"1480982400000\": 0.4508399033, \"1431388800000\": 1.0563083841, \"1425254400000\": 0.4480645487, \"1511308800000\": 0.7705907262, \"1421884800000\": 0.3926189513, \"1423785600000\": 0.3668736987, \"1474502400000\": 0.3975373989, \"1445904000000\": 0.5857512254, \"1504569600000\": 0.699368161, \"1471824000000\": 0.4307308089, \"1490832000000\": 0.460229274, \"1425600000000\": 0.4008972387, \"1482192000000\": 0.3884990133, \"1489708800000\": 0.464336554, \"1421798400000\": 0.3757643613, \"1464220800000\": 0.2610644482, \"1446595200000\": 0.5850352598, \"1481068800000\": 0.4625389133, \"1470096000000\": 0.3817070089, \"1488931200000\": 0.468402694, \"1483056000000\": 0.4000344133, \"1448409600000\": 0.6151831798, \"1478131200000\": 0.4150727633, \"1447372800000\": 0.5888840098, \"1466467200000\": 0.2839256282, \"1454630400000\": 0.2583261917, \"1508976000000\": 0.7372227262, \"1495411200000\": 0.4723325178, \"1476230400000\": 0.4034779889, \"1426118400000\": 0.4190335587, \"1453075200000\": 0.3232496898, \"1421712000000\": 0.3232369213, \"1484524800000\": 0.399992804, \"1514160000000\": 0.6960175262, \"1458864000000\": 0.3476292317, \"1477526400000\": 0.4116002633, \"1442361600000\": 0.3618556554, \"1510617600000\": 0.7873702262, \"1497916800000\": 0.5384789878, \"1427328000000\": 0.6178878087, \"1492646400000\": 0.4984835178, \"1507507200000\": 0.712400181, \"1426809600000\": 0.5848906487, \"1457654400000\": 0.2497274017, \"1514332800000\": 0.6796644262, \"1444348800000\": 0.4320987754, \"1432598400000\": 1.3211017341, \"1497312000000\": 0.5619014578, \"1484179200000\": 0.3993407733, \"1462752000000\": 0.2487434282, \"1434499200000\": 1.3241391141, \"1432512000000\": 1.2477701941, \"1425945600000\": 0.3984118687, \"1426636800000\": 0.5420311787, \"1502841600000\": 0.616855851, \"1448841600000\": 0.5182564998, \"1454544000000\": 0.2704745117, \"1423180800000\": 0.2925668987, \"1488153600000\": 0.470330164, \"1453248000000\": 0.3448336098, \"1468886400000\": 0.4213279682, \"1457049600000\": 0.2837514717, \"1487808000000\": 0.488134374, \"1488240000000\": 0.476352994, \"1513814400000\": 0.7245450262, \"1440460800000\": 0.3273150255, \"1418688000000\": 0.3739981913, \"1443398400000\": 0.3797752354, \"1507852800000\": 0.727046061, \"1512518400000\": 0.6693781262, \"1427241600000\": 0.6191914687, \"1453939200000\": 0.1996074317, \"1503964800000\": 0.6721731709, \"1457481600000\": 0.2717813617, \"1443052800000\": 0.3997656354, \"1418601600000\": 0.3393751813, \"1426723200000\": 0.5526287387, \"1508803200000\": 0.7112780262, \"1467331200000\": 0.3318603482, \"1459209600000\": 0.3177892317, \"1434067200000\": 1.4165911541, \"1417392000000\": 0.1491174513, \"1436486400000\": 0.6161568041, \"1462838400000\": 0.2455958482, \"1510272000000\": 0.8013987262, \"1424131200000\": 0.3920424487, \"1457395200000\": 0.2927111817, \"1513900800000\": 0.7177154262, \"1428969600000\": 0.8550046587, \"1438732800000\": 0.6841631455, \"1441929600000\": 0.4262842654, \"1510185600000\": 0.7791011262, \"1469491200000\": 0.4385426189, \"1504483200000\": 0.6912607009, \"1433980800000\": 1.3979079141, \"1426204800000\": 0.4359548387, \"1472774400000\": 0.4131053389, \"1498694400000\": 0.5970505978, \"1455753600000\": 0.2958839317, \"1439424000000\": 0.7861774855, \"1510704000000\": 0.7563114262, \"1495584000000\": 0.4714457078, \"1493856000000\": 0.4692179278, \"1487635200000\": 0.498792394, \"1440720000000\": 0.4328887355, \"1464307200000\": 0.2588057382, \"1481673600000\": 0.3949278733, \"1481760000000\": 0.3909030433, \"1470700800000\": 0.4224240989, \"1501632000000\": 0.644523001, \"1511136000000\": 0.7538417262, \"1464652800000\": 0.3050107682, \"1459382400000\": 0.3583205417, \"1512000000000\": 0.6498257262, \"1464048000000\": 0.2540880982, \"1494374400000\": 0.4126005478, \"1449705600000\": 0.5363864398, \"1482278400000\": 0.4051437933, \"1473638400000\": 0.3786109989, \"1461542400000\": 0.3253065182, \"1479081600000\": 0.4447337433, \"1433376000000\": 1.3074512541, \"1454284800000\": 0.2287368917, \"1470009600000\": 0.3753342689, \"1474416000000\": 0.3879311689, \"1473206400000\": 0.4319687389, \"1490918400000\": 0.467606554, \"1445212800000\": 0.5338892054, \"1424044800000\": 0.3737728087, \"1459296000000\": 0.3578821817, \"1508716800000\": 0.7120566262, \"1465344000000\": 0.3195899782, \"1458259200000\": 0.3266308917, \"1496707200000\": 0.4912406478, \"1499040000000\": 0.5916796278, \"1476057600000\": 0.3995026989, \"1465948800000\": 0.2888613582, \"1442534400000\": 0.3485768454, \"1485388800000\": 0.446736674, \"1450396800000\": 0.5931960198, \"1428537600000\": 0.7793285787, \"1491523200000\": 0.514293964, \"1506470400000\": 0.6816131409, \"1458777600000\": 0.3429053217, \"1415577600000\": 0.0486744813, \"1417478400000\": 0.1803900713, \"1420502400000\": 0.4393768513, \"1463702400000\": 0.2586647082, \"1438646400000\": 0.7187488455, \"1499299200000\": 0.6008651678, \"1474588800000\": 0.3889184289, \"1430265600000\": 1.0468841187, \"1449014400000\": 0.5419284098, \"1461888000000\": 0.3182314882, \"1481155200000\": 0.4564559733, \"1434412800000\": 1.2954740441, \"1440547200000\": 0.2905206755, \"1506643200000\": 0.693204431, \"1511740800000\": 0.6491462262, \"1435190400000\": 1.1080802641, \"1505952000000\": 0.681353021, \"1449619200000\": 0.5332508798, \"1456444800000\": 0.2533438717, \"1450051200000\": 0.5547764198, \"1503878400000\": 0.6753224109, \"1453680000000\": 0.3231416917, \"1502323200000\": 0.6241487209, \"1423699200000\": 0.3586267587, \"1495756800000\": 0.4704078978, \"1437091200000\": 0.7536224341, \"1472428800000\": 0.4225249089, \"1504137600000\": 0.6749145609, \"1498608000000\": 0.5864813778, \"1473724800000\": 0.3835344289, \"1486598400000\": 0.456274774, \"1497398400000\": 0.5342817878, \"1511481600000\": 0.6884962262, \"1445558400000\": 0.5689430854, \"1467849600000\": 0.3898224982, \"1454371200000\": 0.2576316117, \"1429747200000\": 0.9999205187, \"1461024000000\": 0.3716883317, \"1478217600000\": 0.4066563733, \"1441152000000\": 0.3910697754, \"1487289600000\": 0.468274454, \"1438214400000\": 0.7117296454, \"1432252800000\": 1.1756407441, \"1446508800000\": 0.5148783498, \"1463616000000\": 0.2478444082, \"1415836800000\": 0.0433610313, \"1491436800000\": 0.510368524, \"1415923200000\": 0.0346311913, \"1419379200000\": 0.3090811713, \"1497484800000\": 0.5294141378, \"1468800000000\": 0.4213661782, \"1415059200000\": 0.0205071513, \"1458086400000\": 0.2676506717, \"1461628800000\": 0.3298415982, \"1482710400000\": 0.4084211733, \"1484092800000\": 0.4099689333, \"1469059200000\": 0.4231841589, \"1423094400000\": 0.3161870287, \"1489449600000\": 0.468283844, \"1452038400000\": 0.4972857398, \"1437436800000\": 0.8188999941, \"1471392000000\": 0.4508892189, \"1507766400000\": 0.719576251, \"1473033600000\": 0.4199361089, \"1500422400000\": 0.628474311, \"1447977600000\": 0.6017482798, \"1459814400000\": 0.3807248217, \"1496793600000\": 0.5227040578, \"1448323200000\": 0.5968689498, \"1479859200000\": 0.4540245033, \"1499990400000\": 0.6041490578, \"1456185600000\": 0.3223177517, \"1506384000000\": 0.6743826509, \"1445817600000\": 0.5720133554, \"1442188800000\": 0.3464974854, \"1438041600000\": 0.7052275955, \"1453766400000\": 0.2388648617, \"1463529600000\": 0.2484127382, \"1513036800000\": 0.6988312262, \"1480896000000\": 0.4526150933, \"1497571200000\": 0.5288027978, \"1436745600000\": 0.7150373941, \"1501545600000\": 0.643559781, \"1414972800000\": 0.0111163213, \"1456963200000\": 0.2913449117, \"1439510400000\": 0.7867485555, \"1430352000000\": 1.0462377341, \"1494979200000\": 0.4780900278, \"1476144000000\": 0.4052810689, \"1440374400000\": 0.4408039055, \"1498089600000\": 0.5578252278, \"1470873600000\": 0.4029263089, \"1484697600000\": 0.412991044, \"1442793600000\": 0.3970462754, \"1499212800000\": 0.5992234478, \"1476662400000\": 0.3881386589, \"1444780800000\": 0.4654091654, \"1483488000000\": 0.4246785233, \"1500336000000\": 0.589924991, \"1490745600000\": 0.474509334, \"1459900800000\": 0.3783405917, \"1428883200000\": 0.8355085687, \"1503619200000\": 0.6537358309, \"1416787200000\": 0.0964451613, \"1422489600000\": 0.3796224487, \"1482105600000\": 0.3944012833, \"1448496000000\": 0.5997791198, \"1455494400000\": 0.2540074117, \"1430870400000\": 0.9113859941, \"1439856000000\": 0.6956445555, \"1509494400000\": 0.7115236262, \"1513641600000\": 0.7031348262, \"1473379200000\": 0.4168558089, \"1472515200000\": 0.4185961389, \"1447804800000\": 0.5575092598, \"1502755200000\": 0.625553931, \"1415145600000\": 0.0166269613, \"1510876800000\": 0.7285796262, \"1496880000000\": 0.5370765378, \"1477872000000\": 0.3990766133, \"1423440000000\": 0.3135049487, \"1471564800000\": 0.4429445589, \"1479686400000\": 0.4466788233, \"1501718400000\": 0.621433961, \"1466985600000\": 0.3118507382, \"1491955200000\": 0.519825924, \"1460419200000\": 0.3627272017, \"1489968000000\": 0.467107384, \"1472083200000\": 0.4153162189, \"1421625600000\": 0.3009919313, \"1479168000000\": 0.4410700333, \"1440115200000\": 0.5776530555, \"1466035200000\": 0.2781818482, \"1466640000000\": 0.2957485882, \"1440979200000\": 0.4320346955, \"1433116800000\": 1.2482786441, \"1479427200000\": 0.4423152933, \"1493078400000\": 0.4716804478, \"1419811200000\": 0.4066792313, \"1463011200000\": 0.2562681482, \"1417132800000\": 0.1475023613, \"1428451200000\": 0.7834350887, \"1462924800000\": 0.2490575682, \"1505174400000\": 0.694496691, \"1498780800000\": 0.6009537378, \"1513209600000\": 0.7122827262, \"1492992000000\": 0.4574284578, \"1452470400000\": 0.3402486598, \"1508112000000\": 0.7001535262, \"1495152000000\": 0.4722292178, \"1484784000000\": 0.407852434}}'"
      }
     ],
     "trading_days": "",
     "trusted": true
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "id": "0E3057BEB4CE442D974B6A1CFF1EA425",
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "id": "EB6BDA2D6B0F45A994EBEBC502647365",
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "id": "3938B5CB49F842559C66AEF5492ED011",
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "strategy",
     "collapsed": false,
     "id": "5C00FA0660B74E9C840B2BD01B7D1FE1",
     "input": "start = '2016-01-01'                       # \u56de\u6d4b\u8d77\u59cb\u65f6\u95f4\nend = '2017-01-01'                         # \u56de\u6d4b\u7ed3\u675f\u65f6\u95f4\nuniverse = DynamicUniverse('HS300')        # \u8bc1\u5238\u6c60\uff0c\u652f\u6301\u80a1\u7968\u548c\u57fa\u91d1\u3001\u671f\u8d27\nbenchmark = 'HS300'                        # \u7b56\u7565\u53c2\u8003\u57fa\u51c6\nfreq = 'd'                                 # 'd'\u8868\u793a\u4f7f\u7528\u65e5\u9891\u7387\u56de\u6d4b\uff0c'm'\u8868\u793a\u4f7f\u7528\u5206\u949f\u9891\u7387\u56de\u6d4b\nrefresh_rate = 1                           # \u6267\u884chandle_data\u7684\u65f6\u95f4\u95f4\u9694\n\naccounts = {\n    'fantasy_account': AccountConfig(account_type='security', capital_base=10000000)\n}\n\ndef initialize(context):                   # \u521d\u59cb\u5316\u7b56\u7565\u8fd0\u884c\u73af\u5883\n    pass\n\ndef handle_data(context):                  # \u6838\u5fc3\u7b56\u7565\u903b\u8f91\n    account = context.get_account('fantasy_account')\n",
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "strategy",
     "collapsed": true,
     "id": "28119A6EC37F43B3BA9AD55711DE64F9",
     "input": "start = '2015-01-01'                       # \u56de\u6d4b\u8d77\u59cb\u65f6\u95f4\nend = '2017-12-31'                         # \u56de\u6d4b\u7ed3\u675f\u65f6\u95f4\nuniverse = DynamicUniverse('HS300')            # \u8bc1\u5238\u6c60\uff0c\u652f\u6301\u80a1\u7968\u548c\u57fa\u91d1\u3001\u671f\u8d27\nbenchmark = 'HS300'                        # \u7b56\u7565\u53c2\u8003\u57fa\u51c6\nfreq = 'd'                                 # 'd'\u8868\u793a\u4f7f\u7528\u65e5\u9891\u7387\u56de\u6d4b\uff0c'm'\u8868\u793a\u4f7f\u7528\u5206\u949f\u9891\u7387\u56de\u6d4b\nrefresh_rate = Monthly(1)                  # \u6267\u884chandle_data\u7684\u65f6\u95f4\u95f4\u9694\nDataAPI.settings.cache_enabled = True\n\naccounts = {\n    'fantasy_account': AccountConfig(account_type='security', capital_base=10000000)\n}\n\ndef initialize(context):                   # \u521d\u59cb\u5316\u7b56\u7565\u8fd0\u884c\u73af\u5883    \n    context.signal_generator = SignalGenerator(Signal('PB'), \n                                               Signal('PE'), \n                                               Signal('DividendPaidRatio'))\n    \ndef handle_data(context):                  # \u6838\u5fc3\u7b56\u7565\u903b\u8f91  \n    current_universe = context.get_universe(exclude_halt=True)  \n    df_factor= context.history(current_universe, ['PE', 'PB', 'DividendPaidRatio'], 1, freq='1d', rtype='frame',style='tas')  \n    \n    yesterday = context.previous_date.strftime('%Y-%m-%d')    \n    df_factor = df_factor[yesterday]     \n    \n    # \u7b5b\u9009\u6761\u4ef6\u6ee1\u8db3\uff1a\n    # 1 PE\u5927\u4e8e0\u4e14\u5904\u4e8e\u5e02\u573a\u6700\u4f4e\u768430%\n    # 2 PB\u5904\u4e8e\u5e02\u573a\u6700\u4f4e\u768430%\n    # 3 \u80a1\u606f\u7387\u5904\u4e8e\u5e02\u573a\u6700\u9ad8\u768430%\n    # 4 \u524d\u4e09\u4e2a\u6761\u4ef6\u82e5\u9009\u51fa\u7684\u80a1\u7968\u6570\u91cf\u5927\u4e8e30\uff0c\u5219\u9009\u53d6\u80a1\u606f\u7387\u6700\u9ad8\u768430\u53ea\u80a1\u7968\n    df_factor = df_factor[df_factor['PE'] > 0]                                          \n    df_factor = df_factor[(df_factor['PE'] < df_factor['PE'].quantile(0.3))  \n                          & (df_factor['PB'] < df_factor['PB'].quantile(0.3)) \n                          & (df_factor['DividendPaidRatio'] > df_factor['DividendPaidRatio'].quantile(0.7))]              \n        \n    account = context.get_account('fantasy_account')\n    \n    # \u786e\u5b9a\u76ee\u6807\u4ed3\u4f4d\n    target_position = list(df_factor.sort_values(['DividendPaidRatio'],ascending=False).index[0:30])\n    \n    # \u8ba1\u7b97\u6743\u91cd\n    if len(target_position) > 0:\n        weight = min(0.1, 1.0/len(target_position))\n    else:\n        weight = 0\n        \n    current_position = account.get_positions(exclude_halt=True)    \n    \n    # \u5356\u51fa\u5f53\u524d\u6301\u6709\uff0c\u4f46\u76ee\u6807\u6301\u4ed3\u6ca1\u6709\u7684\u90e8\u5206\n    for stk in set(current_position).difference(target_position):\n        account.order_to(stk, 0)\n    \n    # \u6839\u636e\u76ee\u6807\u6301\u4ed3\u6743\u91cd\uff0c\u9010\u4e00\u59d4\u6258\u4e0b\u5355\n    for stk in target_position:\n        account.order_pct_to(stk, weight)    ",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stderr",
       "text": "KeyboardInterrupt\n"
      },
      {
       "ename": "KeyboardInterrupt",
       "evalue": "",
       "output_type": "pyerr",
       "traceback": [
        "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
        "\u001b[1;32m<mercury-input-7-28119A6EC37F43B3BA9AD55711DE64F9>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m     92\u001b[0m                                             \u001b[0msecurity_cost\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0msecurity_cost\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmax_history_window\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mmax_history_window\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     93\u001b[0m                                             \u001b[0maccounts\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0maccounts\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mpreload_data\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0m_QUARTZ_PRELOAD_DATA\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 94\u001b[1;33m                                             display=True, return_quartz_data=True)\n\u001b[0m\u001b[0;32m     95\u001b[0m     \u001b[0m_QUARTZ_CACHE\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'start'\u001b[0m\u001b[1;33m]\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mstart\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     96\u001b[0m     \u001b[0m_QUARTZ_CACHE\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'end'\u001b[0m\u001b[1;33m]\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mend\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/backtest.pyc\u001b[0m in \u001b[0;36mbacktest\u001b[1;34m(start, end, benchmark, universe, capital_base, initialize, handle_data, post_trading_day, commission, slippage, refresh_rate, freq, security_base, security_cost, max_history_window, accounts, *args, **kwargs)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/backtest.pyc\u001b[0m in \u001b[0;36mbacktest_daily\u001b[1;34m(context, backtest_calendar, backtest_data_roller, **kwargs)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/context/context.pyc\u001b[0m in \u001b[0;36mhandle_data\u001b[1;34m(self)\u001b[0m\n",
        "\u001b[1;32m<mercury-input-7-28119A6EC37F43B3BA9AD55711DE64F9>\u001b[0m in \u001b[0;36mhandle_data\u001b[1;34m(context)\u001b[0m\n\u001b[0;32m     18\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mhandle_data\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontext\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m                  \u001b[1;31m# \u6838\u5fc3\u7b56\u7565\u903b\u8f91\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     19\u001b[0m     \u001b[0mcurrent_universe\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget_universe\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mexclude_halt\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mTrue\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 20\u001b[1;33m     \u001b[0mdf_factor\u001b[0m\u001b[1;33m=\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mhistory\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcurrent_universe\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m[\u001b[0m\u001b[1;34m'PE'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'PB'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'DividendPaidRatio'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mfreq\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m'1d'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mrtype\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m'frame'\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0mstyle\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m'tas'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     21\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     22\u001b[0m     \u001b[0myesterday\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mprevious_date\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstrftime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'%Y-%m-%d'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/context/context.pyc\u001b[0m in \u001b[0;36mhistory\u001b[1;34m(self, symbol, attribute, time_range, freq, style, rtype, f_adj, **options)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/data/market_service.pyc\u001b[0m in \u001b[0;36mslice\u001b[1;34m(self, symbols, fields, end_date, freq, time_range, style, rtype, f_adj, prepare_dates, **options)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/data/market_service.pyc\u001b[0m in \u001b[0;36mslice\u001b[1;34m(self, symbols, fields, end_date, freq, style, time_range, rtype, f_adj, cached_trading_days, prepare_dates, **options)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/data/market_service.pyc\u001b[0m in \u001b[0;36m_load_factor_bars\u001b[1;34m(self, factors)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/mercuryq-quartz.egg/quartz/data_loader/factor_loader.pyc\u001b[0m in \u001b[0;36mload_common_factor_data\u001b[1;34m(universe, trading_days, field)\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/gevent/pool.pyc\u001b[0m in \u001b[0;36mspawn\u001b[1;34m(self, *args, **kwargs)\u001b[0m\n\u001b[0;32m     83\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mspawn\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     84\u001b[0m         \u001b[0mgreenlet\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mgreenlet_class\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 85\u001b[1;33m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mgreenlet\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     86\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mgreenlet\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     87\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/gevent/pool.pyc\u001b[0m in \u001b[0;36mstart\u001b[1;34m(self, greenlet)\u001b[0m\n\u001b[0;32m     78\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     79\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mgreenlet\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 80\u001b[1;33m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0madd\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mgreenlet\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     81\u001b[0m         \u001b[0mgreenlet\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     82\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/gevent/pool.pyc\u001b[0m in \u001b[0;36madd\u001b[1;34m(self, greenlet)\u001b[0m\n\u001b[0;32m    360\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    361\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0madd\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mgreenlet\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 362\u001b[1;33m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_semaphore\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0macquire\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    363\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    364\u001b[0m             \u001b[0mGroup\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0madd\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mgreenlet\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/gevent/_semaphore.so\u001b[0m in \u001b[0;36mgevent._semaphore.Semaphore.acquire (gevent/gevent._semaphore.c:2984)\u001b[1;34m()\u001b[0m\n",
        "\u001b[1;32m/home/ipython/anaconda/lib/python2.7/site-packages/gevent/hub.pyc\u001b[0m in \u001b[0;36mswitch\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m    329\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mswitch_out\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    330\u001b[0m             \u001b[0mswitch_out\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 331\u001b[1;33m         \u001b[1;32mreturn\u001b[0m \u001b[0mgreenlet\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mswitch\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    332\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    333\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mswitch_out\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
        "\u001b[1;31mKeyboardInterrupt\u001b[0m: "
       ]
      }
     ],
     "trading_days": [
      1420416000000,
      1420502400000,
      1420588800000,
      1420675200000,
      1420761600000,
      1421020800000,
      1421107200000,
      1421193600000,
      1421280000000,
      1421366400000,
      1421625600000,
      1421712000000,
      1421798400000,
      1421884800000,
      1421971200000,
      1422230400000,
      1422316800000,
      1422403200000,
      1422489600000,
      1422576000000,
      1422835200000,
      1422921600000,
      1423008000000,
      1423094400000,
      1423180800000,
      1423440000000,
      1423526400000,
      1423612800000,
      1423699200000,
      1423785600000,
      1424044800000,
      1424131200000,
      1424822400000,
      1424908800000,
      1424995200000,
      1425254400000,
      1425340800000,
      1425427200000,
      1425513600000,
      1425600000000,
      1425859200000,
      1425945600000,
      1426032000000,
      1426118400000,
      1426204800000,
      1426464000000,
      1426550400000,
      1426636800000,
      1426723200000,
      1426809600000,
      1427068800000,
      1427155200000,
      1427241600000,
      1427328000000,
      1427414400000,
      1427673600000,
      1427760000000,
      1427846400000,
      1427932800000,
      1428019200000,
      1428364800000,
      1428451200000,
      1428537600000,
      1428624000000,
      1428883200000,
      1428969600000,
      1429056000000,
      1429142400000,
      1429228800000,
      1429488000000,
      1429574400000,
      1429660800000,
      1429747200000,
      1429833600000,
      1430092800000,
      1430179200000,
      1430265600000,
      1430352000000,
      1430697600000,
      1430784000000,
      1430870400000,
      1430956800000,
      1431043200000,
      1431302400000,
      1431388800000,
      1431475200000,
      1431561600000,
      1431648000000,
      1431907200000,
      1431993600000,
      1432080000000,
      1432166400000,
      1432252800000,
      1432512000000,
      1432598400000,
      1432684800000,
      1432771200000,
      1432857600000,
      1433116800000,
      1433203200000,
      1433289600000,
      1433376000000,
      1433462400000,
      1433721600000,
      1433808000000,
      1433894400000,
      1433980800000,
      1434067200000,
      1434326400000,
      1434412800000,
      1434499200000,
      1434585600000,
      1434672000000,
      1435017600000,
      1435104000000,
      1435190400000,
      1435276800000,
      1435536000000,
      1435622400000,
      1435708800000,
      1435795200000,
      1435881600000,
      1436140800000,
      1436227200000,
      1436313600000,
      1436400000000,
      1436486400000,
      1436745600000,
      1436832000000,
      1436918400000,
      1437004800000,
      1437091200000,
      1437350400000,
      1437436800000,
      1437523200000,
      1437609600000,
      1437696000000,
      1437955200000,
      1438041600000,
      1438128000000,
      1438214400000,
      1438300800000,
      1438560000000,
      1438646400000,
      1438732800000,
      1438819200000,
      1438905600000,
      1439164800000,
      1439251200000,
      1439337600000,
      1439424000000,
      1439510400000,
      1439769600000,
      1439856000000,
      1439942400000,
      1440028800000,
      1440115200000,
      1440374400000,
      1440460800000,
      1440547200000,
      1440633600000,
      1440720000000,
      1440979200000,
      1441065600000,
      1441152000000,
      1441584000000,
      1441670400000,
      1441756800000,
      1441843200000,
      1441929600000,
      1442188800000,
      1442275200000,
      1442361600000,
      1442448000000,
      1442534400000,
      1442793600000,
      1442880000000,
      1442966400000,
      1443052800000,
      1443139200000,
      1443398400000,
      1443484800000,
      1443571200000,
      1444262400000,
      1444348800000,
      1444608000000,
      1444694400000,
      1444780800000,
      1444867200000,
      1444953600000,
      1445212800000,
      1445299200000,
      1445385600000,
      1445472000000,
      1445558400000,
      1445817600000,
      1445904000000,
      1445990400000,
      1446076800000,
      1446163200000,
      1446422400000,
      1446508800000,
      1446595200000,
      1446681600000,
      1446768000000,
      1447027200000,
      1447113600000,
      1447200000000,
      1447286400000,
      1447372800000,
      1447632000000,
      1447718400000,
      1447804800000,
      1447891200000,
      1447977600000,
      1448236800000,
      1448323200000,
      1448409600000,
      1448496000000,
      1448582400000,
      1448841600000,
      1448928000000,
      1449014400000,
      1449100800000,
      1449187200000,
      1449446400000,
      1449532800000,
      1449619200000,
      1449705600000,
      1449792000000,
      1450051200000,
      1450137600000,
      1450224000000,
      1450310400000,
      1450396800000,
      1450656000000,
      1450742400000,
      1450828800000,
      1450915200000,
      1451001600000,
      1451260800000,
      1451347200000,
      1451433600000,
      1451520000000,
      1451865600000,
      1451952000000,
      1452038400000,
      1452124800000,
      1452211200000,
      1452470400000,
      1452556800000,
      1452643200000,
      1452729600000,
      1452816000000,
      1453075200000,
      1453161600000,
      1453248000000,
      1453334400000,
      1453420800000,
      1453680000000,
      1453766400000,
      1453852800000,
      1453939200000,
      1454025600000,
      1454284800000,
      1454371200000,
      1454457600000,
      1454544000000,
      1454630400000,
      1455494400000,
      1455580800000,
      1455667200000,
      1455753600000,
      1455840000000,
      1456099200000,
      1456185600000,
      1456272000000,
      1456358400000,
      1456444800000,
      1456704000000,
      1456790400000,
      1456876800000,
      1456963200000,
      1457049600000,
      1457308800000,
      1457395200000,
      1457481600000,
      1457568000000,
      1457654400000,
      1457913600000,
      1458000000000,
      1458086400000,
      1458172800000,
      1458259200000,
      1458518400000,
      1458604800000,
      1458691200000,
      1458777600000,
      1458864000000,
      1459123200000,
      1459209600000,
      1459296000000,
      1459382400000,
      1459468800000,
      1459814400000,
      1459900800000,
      1459987200000,
      1460073600000,
      1460332800000,
      1460419200000,
      1460505600000,
      1460592000000,
      1460678400000,
      1460937600000,
      1461024000000,
      1461110400000,
      1461196800000,
      1461283200000,
      1461542400000,
      1461628800000,
      1461715200000,
      1461801600000,
      1461888000000,
      1462233600000,
      1462320000000,
      1462406400000,
      1462492800000,
      1462752000000,
      1462838400000,
      1462924800000,
      1463011200000,
      1463097600000,
      1463356800000,
      1463443200000,
      1463529600000,
      1463616000000,
      1463702400000,
      1463961600000,
      1464048000000,
      1464134400000,
      1464220800000,
      1464307200000,
      1464566400000,
      1464652800000,
      1464739200000,
      1464825600000,
      1464912000000,
      1465171200000,
      1465257600000,
      1465344000000,
      1465776000000,
      1465862400000,
      1465948800000,
      1466035200000,
      1466121600000,
      1466380800000,
      1466467200000,
      1466553600000,
      1466640000000,
      1466726400000,
      1466985600000,
      1467072000000,
      1467158400000,
      1467244800000,
      1467331200000,
      1467590400000,
      1467676800000,
      1467763200000,
      1467849600000,
      1467936000000,
      1468195200000,
      1468281600000,
      1468368000000,
      1468454400000,
      1468540800000,
      1468800000000,
      1468886400000,
      1468972800000,
      1469059200000,
      1469145600000,
      1469404800000,
      1469491200000,
      1469577600000,
      1469664000000,
      1469750400000,
      1470009600000,
      1470096000000,
      1470182400000,
      1470268800000,
      1470355200000,
      1470614400000,
      1470700800000,
      1470787200000,
      1470873600000,
      1470960000000,
      1471219200000,
      1471305600000,
      1471392000000,
      1471478400000,
      1471564800000,
      1471824000000,
      1471910400000,
      1471996800000,
      1472083200000,
      1472169600000,
      1472428800000,
      1472515200000,
      1472601600000,
      1472688000000,
      1472774400000,
      1473033600000,
      1473120000000,
      1473206400000,
      1473292800000,
      1473379200000,
      1473638400000,
      1473724800000,
      1473811200000,
      1474243200000,
      1474329600000,
      1474416000000,
      1474502400000,
      1474588800000,
      1474848000000,
      1474934400000,
      1475020800000,
      1475107200000,
      1475193600000,
      1476057600000,
      1476144000000,
      1476230400000,
      1476316800000,
      1476403200000,
      1476662400000,
      1476748800000,
      1476835200000,
      1476921600000,
      1477008000000,
      1477267200000,
      1477353600000,
      1477440000000,
      1477526400000,
      1477612800000,
      1477872000000,
      1477958400000,
      1478044800000,
      1478131200000,
      1478217600000,
      1478476800000,
      1478563200000,
      1478649600000,
      1478736000000,
      1478822400000,
      1479081600000,
      1479168000000,
      1479254400000,
      1479340800000,
      1479427200000,
      1479686400000,
      1479772800000,
      1479859200000,
      1479945600000,
      1480032000000,
      1480291200000,
      1480377600000,
      1480464000000,
      1480550400000,
      1480636800000,
      1480896000000,
      1480982400000,
      1481068800000,
      1481155200000,
      1481241600000,
      1481500800000,
      1481587200000,
      1481673600000,
      1481760000000,
      1481846400000,
      1482105600000,
      1482192000000,
      1482278400000,
      1482364800000,
      1482451200000,
      1482710400000,
      1482796800000,
      1482883200000,
      1482969600000,
      1483056000000,
      1483401600000,
      1483488000000,
      1483574400000,
      1483660800000,
      1483920000000,
      1484006400000,
      1484092800000,
      1484179200000,
      1484265600000,
      1484524800000,
      1484611200000,
      1484697600000,
      1484784000000,
      1484870400000,
      1485129600000,
      1485216000000,
      1485302400000,
      1485388800000,
      1486080000000,
      1486339200000,
      1486425600000,
      1486512000000,
      1486598400000,
      1486684800000,
      1486944000000,
      1487030400000,
      1487116800000,
      1487203200000,
      1487289600000,
      1487548800000,
      1487635200000,
      1487721600000,
      1487808000000,
      1487894400000,
      1488153600000,
      1488240000000,
      1488326400000,
      1488412800000,
      1488499200000,
      1488758400000,
      1488844800000,
      1488931200000,
      1489017600000,
      1489104000000,
      1489363200000,
      1489449600000,
      1489536000000,
      1489622400000,
      1489708800000,
      1489968000000,
      1490054400000,
      1490140800000,
      1490227200000,
      1490313600000,
      1490572800000,
      1490659200000,
      1490745600000,
      1490832000000,
      1490918400000,
      1491350400000,
      1491436800000,
      1491523200000,
      1491782400000,
      1491868800000,
      1491955200000,
      1492041600000,
      1492128000000,
      1492387200000,
      1492473600000,
      1492560000000,
      1492646400000,
      1492732800000,
      1492992000000,
      1493078400000,
      1493164800000,
      1493251200000,
      1493337600000,
      1493683200000,
      1493769600000,
      1493856000000,
      1493942400000,
      1494201600000,
      1494288000000,
      1494374400000,
      1494460800000,
      1494547200000,
      1494806400000,
      1494892800000,
      1494979200000,
      1495065600000,
      1495152000000,
      1495411200000,
      1495497600000,
      1495584000000,
      1495670400000,
      1495756800000,
      1496188800000,
      1496275200000,
      1496361600000,
      1496620800000,
      1496707200000,
      1496793600000,
      1496880000000,
      1496966400000,
      1497225600000,
      1497312000000,
      1497398400000,
      1497484800000,
      1497571200000,
      1497830400000,
      1497916800000,
      1498003200000,
      1498089600000,
      1498176000000,
      1498435200000,
      1498521600000,
      1498608000000,
      1498694400000,
      1498780800000,
      1499040000000,
      1499126400000,
      1499212800000,
      1499299200000,
      1499385600000,
      1499644800000,
      1499731200000,
      1499817600000,
      1499904000000,
      1499990400000,
      1500249600000,
      1500336000000,
      1500422400000,
      1500508800000,
      1500595200000,
      1500854400000,
      1500940800000,
      1501027200000,
      1501113600000,
      1501200000000,
      1501459200000,
      1501545600000,
      1501632000000,
      1501718400000,
      1501804800000,
      1502064000000,
      1502150400000,
      1502236800000,
      1502323200000,
      1502409600000,
      1502668800000,
      1502755200000,
      1502841600000,
      1502928000000,
      1503014400000,
      1503273600000,
      1503360000000,
      1503446400000,
      1503532800000,
      1503619200000,
      1503878400000,
      1503964800000,
      1504051200000,
      1504137600000,
      1504224000000,
      1504483200000,
      1504569600000,
      1504656000000,
      1504742400000,
      1504828800000,
      1505088000000,
      1505174400000,
      1505260800000,
      1505347200000,
      1505433600000,
      1505692800000,
      1505779200000,
      1505865600000,
      1505952000000,
      1506038400000,
      1506297600000,
      1506384000000,
      1506470400000,
      1506556800000,
      1506643200000,
      1507507200000,
      1507593600000,
      1507680000000,
      1507766400000,
      1507852800000,
      1508112000000,
      1508198400000,
      1508284800000,
      1508371200000,
      1508457600000,
      1508716800000,
      1508803200000,
      1508889600000,
      1508976000000,
      1509062400000,
      1509321600000,
      1509408000000,
      1509494400000,
      1509580800000,
      1509667200000,
      1509926400000,
      1510012800000,
      1510099200000,
      1510185600000,
      1510272000000,
      1510531200000,
      1510617600000,
      1510704000000,
      1510790400000,
      1510876800000,
      1511136000000,
      1511222400000,
      1511308800000,
      1511395200000,
      1511481600000,
      1511740800000,
      1511827200000,
      1511913600000,
      1512000000000,
      1512086400000,
      1512345600000,
      1512432000000,
      1512518400000,
      1512604800000,
      1512691200000,
      1512950400000,
      1513036800000,
      1513123200000,
      1513209600000,
      1513296000000,
      1513555200000,
      1513641600000,
      1513728000000,
      1513814400000,
      1513900800000,
      1514160000000,
      1514246400000,
      1514332800000,
      1514419200000,
      1514505600000
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "id": "24A05FBFFE75485C8585DCD4C01FA020",
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}